home *** CD-ROM | disk | FTP | other *** search
- Path: grafix.xs4all.nl!john.hendrikx
- Date: Tue, 30 Jan 96 19:32:15 GMT+1
- Newsgroups: comp.sys.amiga.programmer
- Distribution: world
- Subject: Re: Demo/game to OS frien
- MIME-Version: 1.0
- Content-Type: text/plain; charset=iso-8859-1
- Content-Transfer-Encoding: 8bit
- From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
- Message-ID: <john.hendrikx.4aia@grafix.xs4all.nl>
- Organization: Grafix Attack BBS Holland
-
- In a message of 28 Jan 96 Jesse wrote to All:
-
- >> Well, maybe your logic is weaker... but it is clear that without the OS
- >> there is
-
- >> no HD access.
- >> no support for systems with graphics cards. no multitasking.
- >> no return to the OS besides rebooting.
-
- >> Any other claim is _definitely_ wrong.
-
- J> Definitely wrong? What if you use the OS (ooo!) to shut it down and use
- J> your own preemptive multitasking kernel (which has lower overhead and is
- J> more suited for the task than exec), restoring the system when your
- J> program is finished?
-
- You don't understand, you can't 'restore' the system. There could easily be a
- device (like a modem) which requires that its interrupts are processed within a
- given time period. If you 'turn off' the OS this device may well stop working
- and need resetting first. If this device happens to be the harddrive or the
- CD-ROM or whatever then the system will be unusable after your game 'restores'
- the OS to load some data, or simply to quit.
-
- There is also the possibility that devices send you interrupts, which you won't
- be able to handle. This could cause your program to malfunction, but worse, it
- could confuse the device sending you these interrupts and it may stop working,
- which results in the same situation as above.
-
- J> That covers two of those "deficiencies" easily. Nothing is definite.
-
- Does it? Do you -really- think you could do the job exec does and do your own
- multitasking and run all the tasks which were running at the moment you took
- over?
-
- Also, it would be interesting to see how you implement multitasking more
- efficiently than exec (as it already is in ASM, probably well optimized).
-
- J> By your logic, without the OS there is
-
- J> no video.
- J> no audio.
- J> no floppy drive access.
- J> no input from any sources.
-
- J> Of course there is. You just have to write your own code to handle it.
-
- And how would you handle a pc serial mouse connected to the serial port, hmmm?
- The OS can use this mouse just like any Amiga mouse, it never even notices the
- difference, thanks to the mouse-driver installed which creates the right
- input-events to immitate the real Amiga mouse. Your code however will not see
- this mouse, you'll just be poking $bfe001 and other mouse registers while there
- isn't even an Amiga mouse connected. Same goes for 'weird' keyboard. So
- without the OS there is no input (and yes, there are plenty of people who use a
- serial-mouse).
-
- Now think about the Draco, the OS works fine on it, your code however assumes
- AGA (or whatever) and doesn't work. So without the OS there is no video. Same
- goes for audio on the draco, there are no audio registers (atleast not the ones
- YOU know). Floppy drives same thing, the draco has no Paula.
-
- Without the OS there simply is no way to touch the hardware, you can't outsmart
- the OS, never. The OS gets updated to work with new hardware, your crappy code
- is produced once, and after it 'seems' to work on your machine it is released,
- only to find that it doesn't work on any of the more professional Amiga
- systems.
-
- Funny isn't it? I love the Amiga, so I buy more memory, a gfx-card, a faster
- processor (and I can name dozens more things which make or made games crash on
- Amiga) and what do I get? I get punished as suddenly no games or demos work
- anymore, while those people with unupgraded 500's get to play all the latest
- games and they're not spending a penny to support the hardware side of the
- Amiga.
-
- J> Just like the four you mentioned above. Some are considerably easier
- J> than others and some are not officially sanctioned as "good" things to
- J> do, but they're certainly possible.
-
- Only on YOUR machine, and if you're lucky it may work on your friend's Amiga as
- well, but it will never work on all Amiga's.
-
- J> Anyone claiming than you can't do the above without the OS is simply
- J> naive.
-
- Think again, you simply don't even think what would happen with your code if
- the AGA chips were no longer standard, or the CIA's where removed or whatever.
- These things will happen, and are even happening now (see Draco or the recent
- A1200 floppy-drive problem).
-
- J> Frankly, I'm disgusted by the statements people have been making in this
- J> thread about how there are only two types of programmers or programming
- J> that can be done.
-
- You either program clean or you don't.
-
- J> 1. Those that are perfect programmers and are "enlightened" enough to
- J> only use the OS.
-
- J> 2. Those that who use the hardware and are such bad programmers that
- J> the couldn't code their way out of a paper bag.
-
- You misunderstood, they are bad programmers because they use the hardware
- directly in a way which breaks on other Amiga's, not because they are bad at
- ASM or C or whatever.
-
- Grtz John
-
- -----------------------------------------------------------------------
- John.Hendrikx@grafix.xs4all.nl TextDemo/FastView/Etc... development
- -----------------------------------------------------------------------
- -- Via Xenolink 1.981, XenolinkUUCP 1.1
-